#!/bin/bash
export VERSION=1.0.1B
export GROUP_ID=javax.transaction
export ARTIFACT_ID=jta
export FILE=jta.jar
# Create pom files for linux native
cat >pom.xml <<Endofmessage
<project>
	<modelVersion>4.0.0</modelVersion>
	<groupId>$GROUP_ID</groupId>
	<artifactId>$ARTIFACT_ID</artifactId>
	<packaging>pom</packaging>
	<version>$VERSION</version>
	<name>jta</name>
	
	<build>
		<extensions>
			<extension>
				<groupId>org.apache.maven.wagon</groupId>
				<artifactId>wagon-webdav</artifactId>
				<version>1.0-beta-2</version>
			</extension>
		</extensions>
	</build>
	
</project>
Endofmessage

# Install qtjambi-native  jar into repository
mvn deploy:deploy-file  \
                        -DrepositoryId=central-mirror \
                        -Durl=dav:http://builder:8080/archiva/repository/releases/  \
                        -DgroupId=$GROUP_ID \
                        -DartifactId=$ARTIFACT_ID \
                        -Dversion=$VERSION \
                        -Dpackaging=jar \
			-Dfile=$FILE

